import request from '@/utils/request'

// 查询退款订单列表
export function listRefundOrder(query) {
  return request({
    url: '/order/refundOrder/list',
    method: 'get',
    params: query
  })
}

// 查询退款订单详细
export function getRefundOrder(id) {
  return request({
    url: '/order/refundOrder/' + id,
    method: 'get'
  })
}

// 新增退款订单
export function addRefundOrder(data) {
  return request({
    url: '/order/refundOrder',
    method: 'post',
    data: data
  })
}

// 修改退款订单
export function updateRefundOrder(data) {
  return request({
    url: '/order/refundOrder',
    method: 'put',
    data: data
  })
}

// 删除退款订单
export function delRefundOrder(id) {
  return request({
    url: '/order/refundOrder/' + id,
    method: 'delete'
  })
}
